group = new Object()
$.ajax({
    url : "/user/api/group_list",
    async: false,
    success : function(data) {
        for (i=0; i<data.length; i++) {
            group[data[i].id] = data[i].name
        }
    }
})
$.get("/user/api/list",function(data) {
    table.innerHTML = ''
    for (i=0; i<data.length; i++) {
        d = data[i]
        table.innerHTML += sub
                            .replace("ID",d.uid).replace("ID",d.uid)
                            .replace("REALNAME",d.realname)
                            .replace("GROUP",group[d.group])
    }
})
